﻿using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace SistemaAdministracion.Models.BaseClass
{
    [Table("itemliquidacion", Schema = "remuneracion")]
    public class ItemLiquidacion
    {

        public ItemLiquidacion()
        {
            this.DetalleFiniquito = new HashSet<DetalleFiniquito>();
            this.DetalleLiquidacion = new HashSet<DetalleLiquidacion>();
        }

        [Column("iditem")]
        public int IdItem { get; set; }
        [Column("descripcion")]
        public string Descripcion { get; set; }
        [Column("tipoitem")]
        public int TipoItem { get; set; }
        [Column("tipomoneda")]
        public int TipoMoneda { get; set; }
        [Column("imponible")]
        public bool Imponible { get; set; }
        [Column("orden")]
        public int Orden { get; set; }
        [Column("fijo")]
        public bool Fijo { get; set; }
        [Column("formula")]
        public string Formula { get; set; }
        [Column("vigencia")]
        public int Vigencia { get; set; }

        public virtual ICollection<DetalleFiniquito> DetalleFiniquito { get; set; }
        public virtual ICollection<DetalleLiquidacion> DetalleLiquidacion { get; set; }
    }
}
